/**
 * @file systick.c
 * @author your name (you@domain.com)
 * @brief 系统时钟，该文件初始化系统最基础的时钟
 * @version 0.1
 * @date 2021-06-16
 *
 * @copyright Copyright (c) 2021
 *
 */
#include "systick.h"
#include "my_timer.h"

void systick_bsp_init(unsigned long cycle);

static unsigned long systick = 0;
static unsigned long frequency = 0;

/**
 * @brief 时钟中断函数
 *
 */
void systick_irq()
{
    systick++;
    timer_irq(systick);
}
/**
 * @brief Get the systick object
 *
 * @return unsigned long
 */
unsigned long get_systick()
{
    return systick;
}

/**
 * @brief Get the frequency object
 *
 * @return unsigned long
 */
unsigned long get_frequency()
{
    return frequency;
}
